using System;
using System.Windows;
using System.Windows.Media.Animation;
namespace Coding4Fun.Phone.Controls.Toolkit
{
	internal static class Class35
	{
		internal static double smethod_0(Point point_0)
		{
			double num = Math.Min(Math.Sqrt(point_0.get_X() * point_0.get_X() + point_0.get_Y() * point_0.get_Y()), Class34.smethod_0());
			if (Class34.smethod_1() >= num)
			{
				return 0.0;
			}
			return Math.Log(Class34.smethod_1() / num) / Math.Log(Class34.smethod_2());
		}
		internal static Point smethod_1(Point point_0)
		{
			double num = Math.Sqrt(point_0.get_X() * point_0.get_X() + point_0.get_Y() * point_0.get_Y());
			Point point_ = point_0;
			if (num > Class34.smethod_0() && num > 0.0)
			{
				point_.set_X(point_.get_X() * (Class34.smethod_0() / num));
				point_.set_Y(point_.get_Y() * (Class34.smethod_0() / num));
			}
			double num2 = (Math.Pow(Class34.smethod_2(), Class35.smethod_0(point_)) - 1.0) / Math.Log(Class34.smethod_2());
			return new Point(point_.get_X() * num2, point_.get_Y() * num2);
		}
		internal static IEasingFunction smethod_2(double double_0)
		{
			ExponentialEase exponentialEase = new ExponentialEase();
			exponentialEase.set_Exponent(double_0 * Math.Log(Class34.smethod_2()));
			exponentialEase.set_EasingMode(1);
			return exponentialEase;
		}
	}
}
